<template>
    <div>{{ timeFormat }}</div>
</template>

<script lang="ts" setup>
import { computed } from "vue"
const props = withDefaults(defineProps<{time?:number}>(),{
    time: 0
})
const timeFormat = computed(()=>{
    let hour=0,mintus=0,second=0;
    hour = Math.floor(props.time/3600000)
    mintus = Math.floor((props.time-hour*3600000)/60000)
    second = Math.floor((props.time - hour*3600000 - mintus*60000)/1000)
    return `${hour}时${mintus}分${second}秒`
})
</script>